package account;

import java.util.Scanner;

public class Accountservice implements Icservice{
	private AccDAO acc = new AccDAO();


	@Override
	public void createaccount() {
		Accountvo avo = new  Accountvo();
		Scanner sc = new Scanner(System.in);
		System.out.println("계좌를 생성하기 위해 정보를 입력하세요");
		avo.setAid(sc.next());
		System.out.println("계좌 번호를 입력하세요");
		avo.setBalance(sc.next());
		System.out.println("계좌를 잔액을 입력하세요");
		avo.setInterestRate(sc.next());
		if(acc.insertaccount(avo))
			System.out.println("계좌 생성완료");
		else
			System.out.println("계좌 생성실패");
	}

	@Override
	public void readaccount() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void updateaccount() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deleteaccount() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public float getMonthlyInterestRate() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void withDraw() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deposit() {
		// TODO Auto-generated method stub
		
	}
}

	